﻿/* 
 * Performance.cs
 * 
 * Author - Ankit Gupta and Gaurav Aggarwal
 * 
 * This file adds various components to Performance tab.
 * 
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Text;

class Performance : TabPage
{
    PerformanceControl performanceControl = new PerformanceControl();

    public Performance()
    {
        Location = new System.Drawing.Point(4, 22);
        Name = "Performance";
        Padding = new Padding(3);
        Size = new System.Drawing.Size(259, 37);
        Text = "Performance";

        Controls.Add(performanceControl.cacheSizeLabel);
        Controls.Add(performanceControl.cacheSizeTextBox);
        Controls.Add(performanceControl.cacheLocationLabel);
        Controls.Add(performanceControl.cacheLocationTextBox);
        Controls.Add(performanceControl.cacheLocationButton);
        Controls.Add(performanceControl.nonPersistentCachingCheckBox);
        Controls.Add(performanceControl.nonPersistentCachingLabel);
        Controls.Add(performanceControl.validateCacheLabel);
        Controls.Add(performanceControl.validateCacheComboBox);
        Controls.Add(performanceControl.numCacheEntriesLabel);
        Controls.Add(performanceControl.numCacheEntriesTextBox);
        Controls.Add(performanceControl.connDeadTimeoutLabel);
        Controls.Add(performanceControl.connDeadTimeoutTextBox);
        Controls.Add(performanceControl.connDeadTimeoutSecLabel);
        Controls.Add(performanceControl.chunkSizeLabel);
        Controls.Add(performanceControl.chunkSizeTextBox);
        Controls.Add(performanceControl.hardDeadTimeoutLabel);
        Controls.Add(performanceControl.hardDeadTimeoutTextBox);
        Controls.Add(performanceControl.hardDeadTimeoutSecLabel);
        Controls.Add(performanceControl.numCPULabel);
        Controls.Add(performanceControl.numCPUTextBox);
        Controls.Add(performanceControl.downServersLabel);
        Controls.Add(performanceControl.downServersTextBox);
        Controls.Add(performanceControl.downServersSecLabel);
        Controls.Add(performanceControl.numDeamonsLabel);
        Controls.Add(performanceControl.numDaemonsTextBox);
        Controls.Add(performanceControl.upServersLabel);
        Controls.Add(performanceControl.upServersTextBox);
        Controls.Add(performanceControl.upServersSecLabel);
        Controls.Add(performanceControl.numServerThreadsLabel);
        Controls.Add(performanceControl.numServerThreadsTextBox);
        Controls.Add(performanceControl.callbackInvalidationLabel);
        Controls.Add(performanceControl.callbackInvalidationTextBox);
        Controls.Add(performanceControl.callbackInvalidationSecLabel);
        Controls.Add(performanceControl.MTURxInterfaceLabel);
        Controls.Add(performanceControl.MTURxInterfaceTextBox);
        Controls.Add(performanceControl.fileLocksLabel);
        Controls.Add(performanceControl.fileLocksTextBox);
        Controls.Add(performanceControl.fileLocksSecLabel);
        Controls.Add(performanceControl.tokenExpirationLabel);
        Controls.Add(performanceControl.tokenExpirationTextBox);
        Controls.Add(performanceControl.tokenExpirationSecLabel);
        Controls.Add(performanceControl.disableRxJumbogramCheckBox);
        Controls.Add(performanceControl.disableRxJumbogramLabel);
        Controls.Add(performanceControl.applyButton);
        Controls.Add(performanceControl.cancelButton);
        Controls.Add(performanceControl.cacheSettingsGroupBox);
        Controls.Add(performanceControl.probeIntervalsGroupBox);
    }
}